package com.xjh.basestudy.javabase.Collection;

import java.util.ArrayList;
import java.util.LinkedList;

public class TestList1 {
    public static void main(String[] args) {
        ArrayList<String> array = new ArrayList<String>();
        array.add("hello");
        array.add("world");
        for(String s : array){
            System.out.println(s);
        }
        LinkedList<String> linkedList = new LinkedList<String>();
        linkedList.add("hello");
        linkedList.add("world");
        for(String s : linkedList){
            System.out.println(s);
        }
    }
}
